package com.jinlejia.erp.ui.mine.sign;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;
import com.jinlejia.erp.R;

import uk.co.senab.photoview.PhotoView;

/**
 * 查看大图
 */
public class ZoomImageActivity extends AppCompatActivity {

    PhotoView photoView;
    private ImageView back_btn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zoom_image);
        photoView = (PhotoView) findViewById(R.id.photo_view);
        back_btn = (ImageView) findViewById(R.id.back_btn);
        back_btn.setOnClickListener(view -> finish());
        Glide.with(ZoomImageActivity.this)
                .load(getIntent().getStringExtra("img_url"))
                .placeholder(R.mipmap.ic_no_img).
                into(photoView);
    }

}
